﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class SYS_FUNC_COMM : BusinessObject
    {
        public int FunctionID { get; set; }
        public int CommandID { get; set; }

        public List<SYS_COMMAND> lstCmmd = new List<SYS_COMMAND>();
        public List<SYS_FUNCTION> lstFunc = new List<SYS_FUNCTION>();

        public SYS_FUNC_COMM()
        {
            AddRule(new ValidateRequired("FunctionID"));
            AddRule(new ValidateRequired("CommandID"));
        }

        public SYS_FUNC_COMM(int functionID, int commandID)
            : this()
        {
            FunctionID = functionID;
            CommandID = commandID;
        }

    }
}
